package com.ctshk.rpc.order.tour.mapper;

/**
 * <p>
 * 系列团订单 Provider 接口
 * </p>
 *
 * @author 谭响
 * @since 2021-01-18
 */
public class SeriesOrderAmountStatisticsProvider {

//    public String updateByOrderId(String symbol, SeriesOrderAmountStatistics statistics) {
//        StringBuilder sb = new StringBuilder();
//        sb.append("UPDATE ");
//        sb.append("t_series_order_amount_statistics tsoas ");
//        sb.append("SET ");
//        if (statistics.getTotalReceivables() != null) {
//            sb.append("tsoas.total_receivables = tsoas.total_receivables " + symbol + " #{totalReceivables}, ");
//        }
//        if (statistics.getTotalPaidIn() != null) {
//            sb.append("tsoas.total_paid_in = tsoas.total_paid_in " + symbol + " #{totalPaidIn}, ");
//        }
//        if (statistics.getRemainingReceivables() != null) {
//            sb.append("tsoas.remaining_receivables = tsoas.remaining_receivables " + symbol + " #{remainingReceivables}, ");
//        }
//        if (statistics.getRefundAmount() != null) {
//            sb.append("tsoas.refund_amount = tsoas.refund_amount " + symbol + " #{refundAmount}, ");
//        }
//        if (statistics.getTotalTourFee() != null) {
//            sb.append("tsoas.total_tour_fee = tsoas.total_tour_fee " + symbol + " #{totalTourFee}, ");
//        }
//        if (statistics.getCollectionFee() != null) {
//            sb.append("tsoas.collection_fee = tsoas.collection_fee " + symbol + " #{collectionFee}, ");
//        }
//        if (statistics.getAdjustmentCost() != null) {
//            sb.append("tsoas.adjustment_cost = tsoas.adjustment_cost " + symbol + " #{adjustmentCost}, ");
//        }
//        if (statistics.getOtherAmount() != null) {
//            sb.append("tsoas.other_amount = tsoas.other_amount " + symbol + " #{otherAmount}, ");
//        }
//        if (statistics.getReceiptedAmount() != null) {
//            sb.append("tsoas.receipted_amount = tsoas.receipted_amount " + symbol + " #{receiptedAmount}, ");
//        }
//        sb.append("WHERE 1=1 ");
//        sb.append("and tsoas.order_id = #{statistics.orderId} ");
//        return sb.toString();
//    }


}
